﻿<%@ Page Language="C#" Inherits="E.Web.Teacher.internals.publics.course.Edit" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
  <title>课程信息</title>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />  
  <link rel="stylesheet" href="/css/main.css" type="text/css" media="all" />
  <link rel="stylesheet" href="/css/t_main.css" type="text/css" media="all" />
  <script type="text/javascript" src="/js/course.js"></script>
  <script type="text/javascript" src="/js/ajax.js"></script>
  <script type="text/javascript" src="/js/jquery-1.4.2.min.js"></script>
  <script type="text/javascript">
    window.onload = function() {
      document.getElementById("form1").style.display = "";
    }
  </script>
</head>
<body>
  <form id="form1" action="" method="post" style="display:none;">
    <div class="m_top"></div>
    <div class="block_2">
      <div style="width:650px; height:22px;">
        <div class="title">&nbsp;课程信息</div>
      </div>
      <div class="spe_line_2"></div>
      <% if (act == "u") { %>
      <div class="box_1">
        <div class="fl tr left">所属项目组：</div>
        <div class="fl dis_r"><input type="hidden" id="pid" name="pid" value="<%=model.CnPID%>" /><%=model.CnPName%></div>
      </div> 
      <% } else { %>
      <div class="box_1">
        <div class="fl tr left">所属项目组：</div>
        <div class="fl dis_r">
          <% if (projectList != null && projectList.Count > 0) { %>
          <select id="ProjectSlt" name="ProjectSlt" onchange="CheckPublicCourseName();">
            <% if (authority == E.Enum.EnumTeacherAuthority.Admin) { %>
            <option value="-1">请选择</option>
            <% } %>
            <% foreach (System.Collections.Generic.KeyValuePair<int, string> kvp in projectList) { %>
            <option value="<%=kvp.Key %>"><%=kvp.Value%></option>
            <% } %>
          </select>
          <% } %>
        </div>
      </div> 
      <% } %>
      <div class="box_1">
        <div class="fl tr left">课程名称：</div>
        <div class="fl dis_r"><input type="text" id="NameTxt" name="NameTxt" value="<%=model.Name %>" style="width:200px;" onblur="CheckPublicCourseName();" /></div>
        <div class="fl" style="line-height:20px; _line-height:23px;">&nbsp;<span class="hint" id="chkCourseNameRst"></span></div>
      </div>
      <div class="box_1">
        <div class="fl tr left">课时：</div>
        <div class="fl dis_r"><input type="text" id="SchoolHourTxt" name="SchoolHourTxt" style="width:50px;" value="<%=model.SchoolHour %>" /></div>
      </div>
      <div class="box_1">
        <div class="fl tr left">描述：</div>
        <div class="fl dis_r"><input type="text" id="DescriptionTxt" name="DescriptionTxt" style="width:200px;" maxlength="100" value="<%=model.Description %>" /></div>
      </div>
      <% if (act == "u") { %>
      <div class="box_1">
        <div class="fl tr left">是否需要在线上课：</div>
        <div class="fl dis_r"><%=model.NeedLearn ? "是" : "否" %></div>
      </div>
      <% } else { %>
      <div class="box_1">
        <div class="fl tr left">是否需要在线上课：</div>
        <div class="fl dis_r">
          <input type="radio" id="YRg" name="NeedLearnRg" value="1" style="width:20px; height:23px;" class="fl" checked="checked" /><span class="fl" style="margin-top:5px;">是</span>
          <input type="radio" id="NRg" name="NeedLearnRg" value="0" style="width:20px; height:23px;" class="fl" /><span class="fl" style="margin-top:5px;">否</span>
        </div>
      </div>
      <% } %>
    </div>
    <div class="block">
      <div style="width:350px; margin-top:20px; text-align:center;">
      <input type="hidden" id="chkcoursenamerst" name="chkcoursenamerst" value="1" />
        <input type="image" src="/images/btn/confirm.gif" style="width:52px; height:22px;" onclick="return CheckForm('<%=act %>');" />
        &nbsp;&nbsp;<a href="/internals/course/List.aspx"><img alt="" src="/images/btn/back.gif" /></a>
      </div>
    </div>
      <input type="hidden" id="act" name="act" value="<%=act %>" />
      <input type="hidden" id="id" name="id" value="<%=id %>" />
  </form>
</body>
</html>
